package com.chixing.day04_oop;

public class TestComputer {
    public static void main(String[] args) {
        Cpu cpu1 = new Cpu();
        cpu1.setId(1);
        cpu1.setName("r5");
        cpu1.setCompany("AMD");

        Cpu cpu2 = new Cpu();
        cpu2.setId(2);
        cpu2.setName("i7");
        cpu2.setCompany("inter");

        VideoCard v1 =new VideoCard();
        v1.setId(1);
        v1.setName("rx250");
        v1.setCompany("AMD");

        VideoCard v2 =new VideoCard();
        v2.setId(2);
        v2.setName("GTX250");
        v2.setCompany("英伟达");

        System.out.println(cpu1.toString());

    }

}
